<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=HNtF8PpKdoLMQTDurEuZUVTE"></script>-->
<!--<script type="text/javascript" src="script/jquery-1.10.2.min.js"></script>-->
<form enctype="multipart/form-data">
    <fieldset>
        <legend>商家基本信息</legend>
        <label for="id">ID</label>
        <input type="text" name="id" id="id" readonly value="<?=$r['id'];?>"/><br/>
        <label for="company">商家名称</label>
        <input type="text" name="company" id="company" readonly value="<?=$r['company'];?>"/><br/>
        <label for="company_pic">商家照片</label>
        <img width="180" src="<?php if(is_array($r['company_pic'])){foreach($r['company_pic'] as $v){ echo $v['url'];?><?php }?><?php }else echo $r['company_pic']?>"/><br/>
        <label for="license_pic">营业执照</label>
        <img width="180" src="<?php if(is_array($r['license_pic'])){foreach($r['license_pic'] as $v){ echo $v['url'];?><?php }?><?php }else echo $r['license_pic']?>"/><br/>

        <!--        <label for="introduction">简介</label><br/>-->
<!--        <textarea name="introduction" id="introduction" readonly>--><?php //echo $r['introduction']?><!--</textarea><br/>-->
        <label for="address_id">商家地址</label>
        <input type="text" name="address_id" id="address_id" readonly value="<?=$r['shop_address'];?>"/> <br/>
        <label for="address_text">商家地址备注</label>
        <input type="text" name="address_text" id="address_text" readonly value="<?=$r['address_text'];?>"/> <br/>
        <label for="longitudeInput">商家经度</label>
        <input type="text" name="longitude" id="longitudeInput" readonly value="<?=$r['longitude'];?>"/><br/>
        <label for="latitudeInput">商家纬度</label>
        <input type="text" name="latitude" id="latitudeInput" readonly value="<?=$r['latitude'];?>"/>
<!--        <div id="allmap" style="margin-left:15px;width:600px;height:320px;"></div>-->
    </fieldset>
    <fieldset>
        <legend>商家简介</legend>
        <script id="introduction" name="introduction" class="editor" type="text/plain" ><?=$r['introduction'];?></script>
    </fieldset>
    <fieldset>
        <legend>负责人基本信息</legend>
        <label for="real_name">负责人</label>
        <input type="text" name="real_name" id="real_name" readonly value="<?=$r['real_name'];?>"/><br/>
        <label for="sex">性别</label>
        <input type="radio" name="sex" id="sex" readonly value="male" <?php if($r['sex']=='male') echo 'checked';?>>男
        <input type="radio" name="sex" id="sex" readonly value="female" <?php if($r['sex']=='female') echo 'checked';?>>女<br/>
        <label for="birth">出生日期</label>
        <input type="text" name="birth" id="birth" readonly value="<?=$r['birth'];?>"/><br/>
        <label for="nation">民族</label>
        <input type="text" name="nation" id="nation" readonly value="<?=$r['nation'];?>"/><br/>
        <label for="tel">联系方式</label>
        <input type="text" name="tel" id="tel" readonly value="<?=$r['tel'];?>"/><br/>
<!--        <label for="qq">QQ</label>-->
<!--        <input type="text" name="qq" id="qq" readonly value="--><?//=$r['qq'];?><!--"/><br/>-->
        <label for="email">邮箱</label>
        <input type="text" name="email" id="email" readonly value="<?=$r['email'];?>"/><br/>
        <label for="academic">学历</label>
        <input type="text" name="academic" id="academic" readonly value="<?=$r['academic'];?>"/><br/>
        <label for="address">现居地址</label>
        <input type="text" name="address" id="address" readonly value="<?=$r['address'];?>"/><br/>
        <label for="computer_skill">电脑水平</label>
        <input type="text" name="computer_skill" id="computer_skill" readonly value="<?=$r['computer_skill'];?>"/><br/>
        <label for="idnum">身份证号码</label>
        <input type="text" name="idnum" id="idnum" readonly value="<?=$r['idnum'];?>"/><br/>
        <label  for="idnum_pic">身份证照片</label>
        <img width="180" src="<?php if(is_array($r['idnum_pic'])){foreach($r['idnum_pic'] as $v){ echo $v['url'];?><?php }?><?php }else echo $r['idnum_pic']?>"/><br/>
        <label for="recent_pic">近照</label>
        <img width="180" src="<?php if(is_array($r['recent_pic'])){foreach($r['recent_pic'] as $v){ echo $v['url'];?><?php }?><?php }else echo $r['recent_pic']?>"/><br/>
    </fieldset>
</form>
<!--<script type="text/javascript">-->
<!--    var map = new BMap.Map("allmap");-->
<!--    var myGeo = new BMap.Geocoder();-->
<!--    var myCityName;-->
<!--    map.enableScrollWheelZoom();    //启用滚轮放大缩小-->
<!--    map.enableContinuousZoom();    //启用地图惯性拖拽-->
<!--    map.setZoom(10);-->
<!--    myCityName=$("#areaIdSelect").find("option:selected").text();-->
<!--    //初始化地图地址-->
<!--    if(myCityName){-->
<!--        if($("#addressInput").val()){-->
<!--            myGeo.getPoint($("#addressInput").val(), function(point){-->
<!--                if (point) {-->
<!--                    map.centerAndZoom(point, 16);-->
<!--//                    map.addOverlay(new BMap.Marker(point));-->
<!--                    $("#longitudeInput").val(point.lng);-->
<!--                    $("#latitudeInput").val(point.lat);-->
<!--                }else{-->
<!--                    map.centerAndZoom(myCityName,12);-->
<!--                }-->
<!--            }, myCityName);-->
<!--        }else{-->
<!--            map.centerAndZoom(myCityName,12);-->
<!--        }-->
<!--    }else{-->
<!--        myCityName="北京";-->
<!--        map.centerAndZoom("北京",12);-->
<!--    }-->
<!---->
<!--    $("#areaIdSelect").change(function(){-->
<!--        var temp=$("#areaIdSelect").find("option:selected").text();-->
<!--        if(temp){-->
<!--            myCityName=temp;-->
<!--            map.centerAndZoom(myCityName,12);-->
<!--        }else{-->
<!--            myCityName="北京";-->
<!--        }-->
<!--    });-->
<!---->
<!--    $("#addressInput").change(function(){-->
<!--        myGeo.getPoint($("#addressInput").val(), function(point){-->
<!--            if (point){-->
<!--                map.centerAndZoom(point, 16);-->
<!--                $("#longitudeInput").val(point.lng);-->
<!--                $("#latitudeInput").val(point.lat);-->
<!--            }-->
<!--        }, myCityName);-->
<!--    });-->
<!--    map.addEventListener("click",function(e){-->
<!--        $("#longitudeInput").val(e.point.lng);-->
<!--        $("#latitudeInput").val(e.point.lat);-->
<!--    });-->
<!---->
<!--</script>-->